package com.pan.service;

import com.pan.annotation.EntityNotNull;
import com.pan.dao.order1.OrderTable1SelectDao;
import com.pan.dao.order2.OrderTable2SelectDao;
import com.pan.entity.OrderTable1;
import com.pan.entity.Result;
import com.pan.vo.OrderVo;

import java.util.List;

public interface OrderSelectService {
    Result<List<OrderTable1>> selectByUserId(String userTicket);

    @EntityNotNull(daoClass = OrderTable2SelectDao.class,idName = "id")
    Result selectById(Long id);

    @EntityNotNull(daoClass = OrderTable1SelectDao.class,idName = "order1Id")
    Result<OrderVo> selectAllInfoById(Long order1Id);
}
